﻿using System;
using System.Collections.Generic;
using System.Linq;
using System.Web;
using System.Web.Security;
using ECSE6770.Models;

namespace ECSE6770
{
    public static class RoleHelper
    {
        public static IEnumerable<UserProfile> UsersInRole(string role)
        {
            return Roles.GetUsersInRole(role).Select(u => new UserProfile(u));
        }

        public static IEnumerable<UserProfile> Trainers()
        {
            return UsersInRole("Trainer");
        }
    }
}